package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合作商表
 * </p>
 *
 * @author xjy
 * @since 2024-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_partner")
@ApiModel(value="TbPartner对象", description="合作商表")
public class Partner implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "账号")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @TableField("email")
    private String email;

    @ApiModelProperty(value = "所在省")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "所在市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "区县")
    @TableField("county")
    private String county;

    @ApiModelProperty(value = "详细地址")
    @TableField("addr")
    private String addr;

    @ApiModelProperty(value = "联系人")
    @TableField("contact")
    private String contact;

    @ApiModelProperty(value = "分成比例")
    @TableField("ratio")
    private Integer ratio;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
